<template>
  <div class="main">
    <div class="car_top">
      <!-- 头部 -->
      <div class="header">
        <img
          src="http://mall.newbee.ltd/mall/image/new-bee-logo-3.png"
          alt="新蜂商场"
        />
        <div class="text">
          <h1 style="background-color: white">购物车</h1>
        </div>
        <div class="Tips" style="background-color: white">
          温馨提示：产品是否购买成功，以最终下单为准哦，请尽快结算!
        </div>
      </div>
    </div>
    <!-- 分割线 -->
    <div class="cart_line"></div>
    <!-- 表格 -->
    <!-- header-cell-style ：表头样式    cell-style ：所有单元格样式 -->
    <div class="car_bg">
      <div class="car_bottom">
        <el-table
          style="width: 1226px"
          :data="tableData"
          :header-cell-style="{
            width: '100%',
            height: '120px',
            'font-weight': 'bold',
            color: '#000000',
            'text-align': 'center ',
            'border-bottom': '1px solid #CCC',
            'background-color': white,
          }"
          :cell-style="{
            'text-align': 'center',
            'border-bottom': '1px solid #CCC',
            'background-color': white,
          }"
        >
          <el-table-column prop="goodsName" label="商品名称" width="600">
            <div class="goods_name">
              <div class="item_img">
                <img class="goods_img" :src="img" alt="图片" />
              </div>
              <div class="item_span">
                <span> 华为笔记本电脑MateBook X Pro</span>
              </div>
            </div>
          </el-table-column>
          <el-table-column prop="sellingPrice" label="单价" width="125" />
          <el-table-column prop="goodsCount" label="数量" width="125">
            <template #default="scoped">
              <el-input
              v-model="scoped.row.goodsCount"
              >
              </el-input>
            </template>
          </el-table-column>
          <el-table-column prop="Subtotal" label="小计" width="125" />
          <el-table-column prop="operation" label="操作" width="125" ref="clear"
            ><a href="#" class="clear">x</a></el-table-column
          >
        </el-table>
      </div>
      <div class="settlement">
        <div class="settlement_left">
          <span class="jxgw"><a href="#">继续购物</a></span>
          <span>|</span>
          <span>共n件商品</span>
        </div>
        <div class="settlement_right">
          <div>
            <span class="order1">合计（不含运费）：</span>
          </div>
          <div>
            <span class="order2">10499.00元</span>
          </div>
          <div>
            <button class="order3" @click="btn">去结算</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 尾部 -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      img: "https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mbp16-silver-select-202110_GEO_CN.jpeg",
      tableData: [
        {
          goodsName: "华为笔记本电脑MateBook X Pro", //商品名
          sellingPrice: 100, //销售价格
          goodsCount: 100, //商品数量
          Subtotal: 0, //价格小计
          Commodity_Details: "http://mall.newbee.ltd/goods/detail/10913", //商品详情
          operation: "", //活动
          //货物图片
          goodsCoverImg:
            "https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mbp16-silver-select-202110_GEO_CN.jpeg",
        },
        {
          goodsName: "华为笔记本电脑MateBook X Pro", //商品名
          sellingPrice: 100, //销售价格
          goodsCount: 100, //商品数量
          Subtotal: 0, //价格小计
          Commodity_Details: "http://mall.newbee.ltd/goods/detail/10913", //商品详情
          operation: "", //活动
          //货物图片
          goodsCoverImg:
            "https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mbp16-silver-select-202110_GEO_CN.jpeg",
        },
        {
          goodsName: "华为笔记本电脑MateBook X Pro", //商品名
          sellingPrice: 100, //销售价格
          goodsCount: 100, //商品数量
          Subtotal: 0, //价格小计
          Commodity_Details: "http://mall.newbee.ltd/goods/detail/10913", //商品详情
          operation: "", //活动
          //货物图片
          goodsCoverImg:
            "https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/mbp16-silver-select-202110_GEO_CN.jpeg",
        },
      ],
      number: 100,
    };
  },
  methods: {
  },
};
</script>






<style lang="scss" scoped>
* {
  text-decoration: none;
}
.main {
  // background-color: #f5f5f5;
  height: 100%;
  .car_top {
    width: 1226px;
    height: 100px;
    margin: 0 auto;
    background-color: white !important;

    .header {
      // background-color: pink;
      // background-color: red;
      width: 100%;
      height: 100px;
      margin-left: 0;
      margin: 0 auto;
      display: flex;
      img {
        width: 100px;
        height: 100px;
        background-color: white;
      }
      .text {
        margin-left: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: white;
      }
      .Tips {
        font-size: 12px;
        color: #777;
        line-height: 100px;
        margin-left: 20px;
      }
    }
  }
  .cart_line {
    width: 100%;
    height: 2px;
    background: #1baeae;
  }
  .car_bg {
    background-color: #f5f5f5;
    padding-bottom: 20px;
    .car_bottom {
      width: 1226px;
      margin: 0 auto;

      .goods_name {
        display: flex;
        justify-content: center;
        align-items: center;
        .item_img {
          width: 50px;
          height: 120px;
          margin-left: 35px;
          img {
            width: 50px;
            height: 60px;
            margin-top: 30px;
          }
        }
        .item_span {
          width: 330px;
          height: 60px;
          line-height: 60px;
        }
      }
      .clear {
        font-size: 20px;
        color: black;
      }
      .clear:hover {
        color: #1baeae;
      }
    }
    .goods_count {
      width: 70px;
      height: 35px;
      border: 1px solid #ececec;
      text-align: center;
      font-size: 14px;
      color: #1baeae;
    }

    .settlement {
      width: 1226px;
      height: 50px;
      background-color: white;
      margin: 20px auto;
      display: flex;
      justify-content: space-between;
      .settlement_left {
        width: 400px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        span {
          padding: 0 10px;
        }
      }
      .settlement_right {
        display: flex;
        justify-content: right;
        align-items: center;
        width: 600px;
        height: 50px;
        .order1 {
          display: block;
          line-height: 50px;
          font-size: 14px;
          color: #1baeae;
        }
        .order2 {
          display: block;
          line-height: 50px;
          font-size: 24px;
          color: #1baeae;
          font-family: Microsoft Yahei;
          font-weight: bold;
          width: 140px;
        }
        .order3 {
          width: 200px;
          height: 50px;
          background-color: #1baeae;
          border: none;
          color: #fff;
          font-size: 10px;
          margin-left: 30px;
        }
      }
    }
  }
  .footer {
    padding: 30px 200px;
    height: 530px;
    background-color: black;
    color: white;
    box-sizing: border-box;

    .top {
      height: 300px;
      text-align: left;
      border-bottom: 1px solid white;
      .el-row {
        .el-col {
          p {
            font-size: 14px;
          }
        }
      }
      .service {
        text-align: left;
        display: flex;
        .icons {
          margin-top: 16px;
        }
        .el-row {
          width: 100%;
        }
        .service-text {
          // margin-top: -14px ;
          p {
            border: 1px solid white;
            text-align: center;
            line-height: 32px;
            width: 92px;
            height: 32px;
          }
        }
      }
    }
    .bot {
      padding: 20px 0 10px 0;
      border-bottom: 1px solid white;
      .link-a {
        a {
          font-size: 14px;
          color: white !important;
          text-decoration: none;
          padding: 0 30px;
        }
      }
    }
    .end {
      text-align: center;
      p {
        font-size: 14px;
      }
      .qqtalk {
        height: 30px;
        line-height: 30px;
        img {
          vertical-align: middle;
        }
      }
    }
  }
}
</style>
